<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">

        <div class="layui-form-item">
            <label class="layui-form-label">菜单名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" class="layui-input" lay-verify="required" lay-reqtext="请输入菜单名称" placeholder="请输入菜单名称" value="{$row.name|default=''}">
            </div>
        </div>
        
         <div class="layui-form-item">
        <label class="layui-form-label">未选中图标</label>
        <div class="layui-input-block layuimini-upload">
            <input name="icon" class="layui-input layui-col-xs6" placeholder="请上传未选中时显示图标"  value="{$row.icon|default=''}" >
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="icon" data-upload-number="one"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_icon" data-upload-select="icon" data-upload-number="one"><i class="fa fa-list"></i> 选择</a></span>
            </div>
        </div>
    </div>
    
    <div class="layui-form-item">
        <label class="layui-form-label">选中图标</label>
        <div class="layui-input-block layuimini-upload">
            <input name="sicon" class="layui-input layui-col-xs6" placeholder="请上传选中时显示图标"  value="{$row.sicon|default=''}" >
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="sicon" data-upload-number="one"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_sicon" data-upload-select="sicon" data-upload-number="one"><i class="fa fa-list"></i> 选择</a></span>
            </div>
        </div>
    </div>


      

       <div class="layui-form-item">
        <label class="layui-form-label required">外链类型：</label>
        <div class="layui-input-block">
            
            <input type="radio" name="type" value="0" title="本小程序switch（菜单页）" lay-filter="type" {if $row.type ==0}checked=""{/if}>
            <input type="radio" name="type" value="1" title="本小程序" lay-filter="type" {if $row.type ==1}checked=""{/if}>
            <input type="radio" name="type" value="2" title="跳转其他小程序" lay-filter="type" {if $row.type ==2}checked=""{/if}>
           <input type="radio" name="type" value="3" title="H5/公众号链接" lay-filter="type" {if $row.type ==3}checked=""{/if}>
           <input type="radio" name="type" value="4" title="跳转至客服" lay-filter="type" {if $row.type ==4}checked=""{/if}>
           <input type="radio" name="type" value="5" title="复制链接（提示复制至浏览器打开）" lay-filter="type" {if $row.type ==5}checked=""{/if}>
           <input type="radio" name="type" value="6" title="弹出图片/二维码" lay-filter="type" {if $row.type ==6}checked=""{/if}>
        </div>
    </div>
    
    
        <div class="layui-form-item" id="appid"  {if $row.type !=2}style="display:none"{/if}>
            <label class="layui-form-label">appid:</label>
            <div class="layui-input-block">
                <input type="text" name="appid" class="layui-input"  placeholder="其他小程序的APPID" value="{$row.appid|default=''}">
            </div>
        </div>
        
        <div class="layui-form-item" id="url"   {if $row.type ==4 && $row.type ==6}style="display:none"{/if}>
            <label class="layui-form-label">路径/URL:</label>
            <div class="layui-input-block">
                <input type="text" name="url" class="layui-input"  placeholder="输入跳转的路径/链接" value="{$row.url|default=''}">
            </div>
        </div>
        
        <div class="layui-form-item"  id="outimg"  {if $row.type !=6}style="display:none"{/if}>
        <label class="layui-form-label">弹出图片：</label>
        <div class="layui-input-block layuimini-upload">
            <input name="outimg" class="layui-input layui-col-xs6" placeholder="请上传要弹出的图片"  value="{$row.outimg|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="outimg" data-upload-number="one"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_outimg" data-upload-select="outimg" data-upload-number="one"><i class="fa fa-list"></i> 选择</a></span>
            </div>
        </div>
    </div>
    
    
    
    
    
    
        
        <div class="layui-form-item">
        <label class="layui-form-label required">是否显示：</label>
        <div class="layui-input-block">
          <input type="radio" name="status" value="1" title="显示" lay-filter="status" {if $row.status==1}checked=""{/if}>
            <input type="radio" name="status" value="0" title="隐藏" lay-filter="status" {if $row.status==0}checked=""{/if}>
        </div>
        <div class="layui-form-mid layui-word-aux">可适当隐藏某些功能规避审核</div>
    </div>
        
       <div class="layui-form-item">
            <label class="layui-form-label">排序:</label>
            <div class="layui-input-block">
                <input type="number" name="sort" class="layui-input"  placeholder="输入排序等级" value="{$row.sort|default=''}">
                <div class="layui-form-mid layui-word-aux">数字越大越靠前</div>
            </div>
            
        </div>
        
        


        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
